home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / p / pov / povlisti.ngs / twist1.pov < prev    next >
Encoding:
Text File  |  1992-07-25  |  2.1 KB  |  68 lines

  1. // Persistence of Vision Raytracer
  2. // Twister objects were generated using the POV-Ray utility "twister.exe"
  3. // and then hand-tweaked.
  4.  
  5. #include "include.inc"
  6.  
  7. // These declarations are required for the twist files.
  8. // If you change the _type_ of object used, you must also reflect that
  9. // change in the particular twist.inc file.  Watch out for exceeding the
  10. // scale of the bounding shape in the twist.inc files, too.
  11. //-----------------------------------------------------------------
  12. // Shapes used for each twister
  13. // ----------------------------
  14. #declare Part1 = intersection { Disk_X scale < 5.00 0.25 0.25 > }
  15. #declare Part2 = quadric { Ellipsoid scale < 2.00 2.0 0.5 > }
  16. #declare Part3 = union {
  17.     quadric { Ellipsoid scale < 0.2 0.2 0.2 > translate <-6 0 0> }
  18.     quadric { Ellipsoid scale < 0.2 0.2 0.2 > translate < 6 0 0> }
  19. }
  20.  
  21. // Textures for each twister
  22. // ----------------------------
  23. #declare Texture1 =
  24.  texture {
  25.     color Gray20
  26.     phong 0.5 phong_size 50
  27.     ambient 0.2
  28.     reflection 0.85
  29. }
  30. #declare Texture2 =  texture { Copper_Metal reflection 0.95 }
  31. #declare Texture3 =  texture { Silver_Metal }
  32.  
  33. // Now, include the twister data (as objects)
  34. // ----------------------------
  35. #include "twist1.inc"
  36. #include "twist2.inc"
  37. #include "twist3.inc"
  38.  
  39. // This sets things up for a possible animation.
  40. // Note that twister #2 is 90 degrees out of sync with the others
  41. // ----------------------------
  42. #declare RotateY1 = 0
  43. #declare RotateY2 = 90
  44. #declare RotateY3 = 0
  45.  
  46. // Now, start the scene description
  47. // ----------------------------
  48. camera {
  49.    location <0 0  -25>
  50.    direction <0 0  FoV_45>
  51.    up  <0  1  0>
  52.    right <1.33333 0 0>
  53.    look_at <0 0 0>
  54. }
  55.  
  56. object { light_source  { <-10 10 -20>  color White  } }
  57. #declare The_Twist = composite {
  58.     object { Macaroni1 rotate <0 RotateY1 0> }
  59.     object { Macaroni2 rotate <0 RotateY2 0> }
  60.     object { Macaroni3 rotate <0 RotateY3 0> }
  61. }
  62.  
  63. composite { The_Twist
  64.     translate <0 -10 0>  // Centered on 0 y
  65.     rotate <0 0 90>      // Turn major axis to x
  66.     rotate <0 45 0>      // Pivot right side toward camera
  67. }
  68.